<?php

   global $itemType;
			global $itemTopSize;
			global $itemSize;
			global $itemColor;
			global $itemMaterial;
			global $itemSeason;
			global $itemYear;
			global $itemType;
			global $itemDesigner;
			global $organizationType;			
?>
	<div class="block">

<div id= 'content'>
	<h2>更改产品:<?php echo $item->name?>（条形码及有关属性不可被更改）：</h2>
	
<br>



    <div class="form">
    	<b>更改列表</b>
        <form action="api/" method="post">
        	<input type="hidden" id='action' name="action" value="alter_item" />

        	
        	  <div class="element">
             <label class="form">扫描条形码</label>
             <input type="text" id="scan_code" name="scan_code" class="text"  value="<?php echo $item->scan_code ?>" readonly><div class="important">不可更改</div>
            </div> 
        	<div class="element">
             <label class="form">类别</label>
             <input type="text" id="type" name="type" class="text"  value="<?php echo $itemType[$item->type] ?>" disabled><div class="important">不可更改</div>
            </div> 

     <div class="element">
             <label class="form">年份</label>
             <input type="text" id="year" name="year" class="text"  value="<?php echo $itemYear[$item->year] ?>" disabled><div class="important">不可更改</div>
            </div> 
  
            <div class="element">
             <label class="form">季节</label>
             <input type="text" id="season" name="season" class="text"  value="<?php echo $itemSeason[$item->season] ?>" disabled ><div class="important">不可更改</div>
            </div> 
  
     
            
            
             <div class="element">
             <label class="form">流水号</label>
             <input type="text" id="flow" name="flow" class="text"  value="<?php echo $item->flow ?>" disabled ><div class="important">不可更改</div>
            </div> 
            
        <div class="element">
             <label class="form">面料</label>
             <input type="text" id="material" name="material" class="text"  value="<?php echo $itemMaterial[$item->material] ?>" disabled><div class="important">不可更改</div>
            </div> 
            
                 <div class="element">
             <label class="form">颜色码</label>
             <input type="text" id="color" name="color" class="text"  value="<?php echo $itemColor[$item->color] ?>" disabled><div class="important">不可更改</div>
            </div> 
            
                <div class="element">
             <label class="form">尺码</label>
             <input type="text" id="size" name="size" class="text"  value="<?php echo $itemSize[$item->size] ?>" disabled><div class="important">不可更改</div>
            </div> 
            
            
            
           <div class="element" style="clear:both;">
            <label class="form">设计师代码</label>
                                                                   
            <div class='checkbox'>
        	<?php
        	foreach($itemDesigner as $key => $value)
        	{
        		
				if($key==$item->designer){
        	?>
                <input type="radio" name="designer" value="<?php echo $key;?>" checked="checked">设计师：<?php echo $value;?><br>
            <?php
			    }else{
			?>
			    <input type="radio" name="designer" value="<?php echo $key;?>" >设计师：<?php echo $value;?><br>
			<?php
					
				}
            }
        	?>
     </div>

    </div>
    
  <div class="element" style="clear:both;">
        <label class="form">销售与否</label>
        
        <div class='checkbox'>
<?php
if($item->active=="1"){ 
?>
                <input type="radio" name="active" value="1" checked="checked">是<br>
     
			    <input type="radio" name="active" value="0" >否<br>
			    <?php
}else{
			    ?>
			    <input type="radio" name="active" value="1" >是<br>
     
			    <input type="radio" name="active" value="0" checked="checked">否<br>
			    			    <?php
}
			    ?>
	
     </div>

    </div>
       <div class="element">
             <label class="form">产品名称</label>
             <input type="text"  name="name" class="text" maxlength="30" size="30" value="<?php echo $item->name ?>">
      </div>
     <div class="element">
             <label class="form">官方定价</label>
             <input type="text"  name="price" class="text" maxlength="6" size="6" value="<?php echo $item->price ?>">
      </div>
      <div class="element">
             <label class="form">打折(%)</label>
             <input type="text"  name="ratio" class="text" maxlength="6" size="6" value="<?php echo $item->ratio ?>"><div>%</div>
      </div>

    <div class="element">
<input type="submit" value="递交" />
        <div class="loading"></div>
    </div>
    </form>
   <form action="index.php" method="GET">
          	            <input type="hidden" id='page' name="page" value='manage_items'/>

<div>
<input type="submit" value="返回">
</div>
</form>
    </div>
    
    </div>
<div class="clear"></div>
	</div>